package com.meixiang.activity.account.manager;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.meixiang.R;
import com.meixiang.main.BaseActivity;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 支付密码
 *
 * @author zys
 */

public class PaymentCodeActivity extends BaseActivity {
    @Bind(R.id.title)
    TitleView title;
    @Bind(R.id.rl_forget_pwd_payment_code)
    RelativeLayout rlForgetPwdPaymentCode;
    @Bind(R.id.rl_change_payment_code)
    RelativeLayout rlChangePaymentCode;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_pyamet_code);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);

    }

    @Override
    protected void initTitle() {
        title.setTitle(R.string.pay_code);
        title.setLeftImageButton(R.mipmap.back);
        title.showLeftButton(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });


    }

    @Override
    protected void initView() {

    }

    @Override
    protected void setData() {

    }

    @OnClick({R.id.rl_forget_pwd_payment_code, R.id.rl_change_payment_code})
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rl_forget_pwd_payment_code:
                startActivity(new Intent(this, VerifyPhoneNumberPayOffActivity.class));
                finish();
                break;
            case R.id.rl_change_payment_code:
                Intent intent=new Intent(this,PayPassWordActivity.class);
                intent.putExtra("ClassStatus","a");
                startActivity(intent);
                finish();
                break;

        }
    }
}
